package mysql

import "gorm.io/gorm"

type Coupon struct {
	gorm.Model
	Name  string  `gorm:"type:varchar(30);comment:优惠卷名称"`
	Price float64 `gorm:"type:decimal(10,2);comment:优惠的价格"`
}

func (Coupon) TableName() string {
	return "coupon"
}
